﻿namespace F5.BigIp.LocalTrafficManager.UI.Infrastructure
{
    using System.Net;

    using F5.BigIp.LocalTrafficManager.Proxy.V11;
    using F5.BigIp.LocalTrafficManager.UI.ViewModels;
    using F5.BigIp.LocalTrafficManager.UI.Views;

    public static class Bootstrapper
    {
        //public static IContainer Container { get; private set; }

        public static void Initialize()
        {
            ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;

            TinyIoCContainer.Current.Register<IMainViewModel, MainViewModel>().UsingConstructor(() => new MainViewModel(new MainWindow(), new ViewFactory(), new PoolMemberService()));

            TinyIoCContainer.Current.AutoRegister();

        }
    }
}
